/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.framework.core.impl;

import java.util.Collection;

import com.cqcis.uip.base.framework.common.Task;
import com.cqcis.uip.base.framework.core.TaskWaitTimeConsumePool;

/**
 * task超时池适配器
 * 
 * @author huangmy
 * @date   2008-5-9
 */
public class TaskWaitTimeConsumePoolExecutorAdaptor implements TaskWaitTimeConsumePool {
	private TaskWaitTimeConsumePool twtcp;
	
	public TaskWaitTimeConsumePoolExecutorAdaptor(TaskWaitTimeConsumePool twtcp) {
		this.twtcp = twtcp;
	}
	
	public Collection<Task> getAllTaskWaits() {		
		return this.twtcp.getAllTaskWaits();
	}

	public void putTaskWait(Task task) {
		this.twtcp.putTaskWait(task);
	}

	public Task removeTaskWait() {		
		return this.twtcp.removeTaskWait();
	}
    
	public boolean removeTaskWait(Task task) {		
		return this.twtcp.removeTaskWait(task);
	}
	
	public boolean removeTaskWaitAndExecute(Task task) {		
		return this.twtcp.removeTaskWaitAndExecute(task);
	}
}
